home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2631 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. Path: eagle.novo.dk!usenet
  2. From: morb@novo.dk (Morten Brun)
  3. Newsgroups: comp.lang.c++
  4. Subject: VC++ v.4.0 conversion problems
  5. Date: Thu, 18 Jan 1996 16:23:20 GMT
  6. Organization: Novo Nordisk
  7. Message-ID: <4dls1n$ldp@eagle.novo.dk>
  8. NNTP-Posting-Host: dhcp250-178.novo.dk
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. I am having a lot of problems when compiling under v.4. as I am etting
  12.  
  13. a lot of conversions errors due to the new behavior of v.4 like:
  14. -----------------------------------------------------------------------------
  15. LPWSTR                    lpszName;
  16.  
  17. GetPrivateProfileStringA("x", "y", "",lpszName, sizeof(lpszName),
  18. \\xxx.INI");
  19.  
  20. error c26664: cannot convert parm. 4 from unsigned short * to char *
  21. ---------------------------------------------------------------------------------
  22. or
  23. error C2446: '=' : no conversion from 'char *' to 'unsigned char *'
  24. error C2664: 'wcstombs' : cannot convert parameter 1 from 'unsigned
  25. char [32]' error C2664: 'mbstowcs' : cannot convert parameter 2 from
  26. 'unsigned char *' to 'const char *'
  27. error C2664: 'ctime' : cannot convert parameter 1 from 'unsigned long
  28. *' to 'const long *'
  29. ----------------------------------------------------------------------------------------
  30. As I am e new to C++ and VC++ I have serious trouble in getting these
  31. functions to work. Are there anybody which please could give me some
  32. good ideas of how I without to much work can get my program to work ??
  33.  
  34. Regards Morten
  35.  
  36.  
  37.  
  38. Morten Brun
  39. Novo Nordisk IT, Denmark
  40. morb@novo.dk
  41.  
  42.